]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "screenShield: Connect to the actor's show signal instead of using BEFORE_REDRAW"
authorRay Strode <rstrode@redhat.com>
Wed, 24 Oct 2012 14:17:43 +0000 (10:17 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 24 Oct 2012 14:17:43 +0000 (10:17 -0400)
This reverts commit bdeb7d86b649cfacfa3f706daac3c78b74f012f4.

git bz PEBKAC

js/ui/screenShield.js

index 4d60f71aa233579819b21de68e8e1aea41658b4e..20695688259884b2b76b899b13183416499f51f5 100644 (file)
@@ -580,14 +580,13 @@ const ScreenShield = new Lang.Class({
     showDialog: function() {
         // Ensure that the stage window is mapped, before taking a grab
         // otherwise X errors out
-        let actorShownId = 0;
-        actorShownId = this.actor.connect('show', Lang.bind(this, function() {
+        Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
             if (!this._isModal) {
                 Main.pushModal(this.actor);
                 this._isModal = true;
             }
 
-            this.actor.disconnect(actorShownId);
+            return false;
         }));
 
         this.actor.show();